I assume that for some reason you would like to have DB and collection created prior to import. create a script for example employees.js, ... ... <看更多>
2 Answers · Enable authentication on the /etc/mongod.conf file · Create a read user on admin DB , since you want to access all DBs. If specific DB ... ... <看更多>